     //这里写路由的配置，即所有组件的跳转设置
import VueRouter from "vue-router"; //导入vue-router
import Main from "../components/Main";  //导入Main组件
import Content from "../components/Content";   //导入Content组件
import Vue from "vue"; //导入Vue
//安装路由Vue-Router
Vue.use(VueRouter);

//配置路由并导出路由
     export default new VueRouter({
       routes: [
         {
           //路由名
           name: 'Main',
           //路由路径，类似于java的@requestMapping
           path: '/Main',
           //对应的组件
           component: Main

         },{
         name : 'Content',
         path : '/Content',
         component: Content
         }
       ]
     })
